﻿@model MvcApplication1.Controllers.person
@{
    Layout = null;
}

<script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>
<div id="person">
    @Model.id
    <br>
    @Model.name
</div>
@using (Ajax.BeginForm("t171", new AjaxOptions { UpdateTargetId = "person" }))
{
    @Html.DropDownListFor(model => model.name, ViewData["name"] as List<SelectListItem>)
    <input type="submit" value="submit" />
}
